#include "gtest/gtest.h"
#include "../cipher.h"

TEST(CipherTest, NormalizeSucceeds)
{
	EXPECT_EQ("CODEINRUBYLIVELONGER", Cipher::Normalize("Code in Ruby, live longer!"));
	EXPECT_EQ("CODEINRUBYLIVELONGXX", Cipher::Normalize("Code in Ruby, live long!"));
	EXPECT_EQ("CODEINRUBYLIVEX", Cipher::Normalize("Code in Ruby, live."));
}

TEST(CipherTest, NumberizeSucceeds)
{
	std::list<int> compare_list;
 
	int compare_ints[]={3,15,4,5,9,14,18,21,2,25,12,9,22,5,12,15,14,7,5,18};
	compare_list.assign( compare_ints, compare_ints + sizeof(compare_ints) / sizeof(int) );
	EXPECT_TRUE(compare_list == Cipher::Numberize("CODEINRUBYLIVELONGER"));
}

TEST(CipherTest, KeystreamSucceeds)
{
	std::string message = "CODEINRUBYLIVELONGER";

	
}
